package dao

import (
	"fmt"
	redis2 "github.com/garyburd/redigo/redis"
	"my-crawler/common"
	"my-crawler/concurrence/model"
)

func SaveInRedis(db *redis2.Pool, item model.SaveItem) {
	fmt.Println("saver Item")
	//redis.SAdd("zhenai_user2", item.Name)
	pool := db.Get()
	_, err := pool.Do("SAdd", "zhenai_user2", item.Name)
	common.Check(err)
}
